package com.yizhuoyan.his.algorithm;

import java.io.InputStream;

public class SHA256AndMD5 {
	
	public static String encode(InputStream is) {
		return Md5.encode(SHA256.encode(is));
	}
	public static String encode(byte[] bs) {
		return Md5.encode(SHA256.encode(bs));
	}
	
	public static String encode(String s) {
		return Md5.encode(SHA256.encode(s));
	}

	public static void main(String[] args) throws Exception {
		System.out.println(encode("123456"));
	}
}
